package com.yxw.yx_hotel.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * @author liuxin
 * @date 2023.0913
 */
@EqualsAndHashCode(callSuper = false)
@Data
@ToString(callSuper=true)
@ApiModel(value="UpdateRoomRepairDto", description="宿舍报修修改Dto")
public class UpdateRoomRepairDto implements Serializable {

    @NotNull(message = "报修ID不能为空")
    @ApiModelProperty(value = "报修ID")
    private Long repairId;

    @NotNull(message = "预计完工日期不能为空")
    @ApiModelProperty(value="预计完工日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date expectFinishTime;

    @ApiModelProperty(value="实际完工日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date finishTime;

    @ApiModelProperty(value="维修费用")
    private Double money;

    @ApiModelProperty(value="维修状态 0：未处理 1：处理中 2：已处理")
    private Integer status;

    @ApiModelProperty(value="更换零件记录")
    private String record;

    @ApiModelProperty(value="备注")
    private String note;
}
